
package com.ywjg.dao;
import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.ywjg.model.RapairComment;
public interface RapairCommentDao extends  PagingAndSortingRepository<RapairComment,Integer>{
	
	List<RapairComment> findByUserId(Integer id,Pageable pageable);
	
	List<RapairComment> findByUserIdAndRapairIsComment(Integer id,int isComment,Pageable pageable);
	
	List<RapairComment> findByRapairIdAndUserIsComment(Integer id,int isComment,Pageable pageable);
	
	List<RapairComment> findByRapairId(Integer id,Pageable pageable);
	
	
	
	
}
